﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//namespace Titan
//{
//    public class PropertyNameExtension
//    {

//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem Custom(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.Custom, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem Equal(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.Equal, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem GreaterThanOrEqual(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.GreaterThanOrEqual, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem GreaterThan(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.GreaterThan, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem In(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.In, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem LessThanOrEqual(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.LessThanOrEqual, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem LessThan(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.LessThan, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem Like(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.Like, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem NotEqual(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotEqual, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem NotIn(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotIn, value);
//        }

//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem NotLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotLike, value);
//        }


//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem LeftLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.LeftLike, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem LeftNotLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotLeftLike, value);
//        }

//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem RightLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.RightLike, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem RightNotLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotRightLike, value);
//        }
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem FullTextLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.FullTextLike, value);
//        }

//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="value"></param>
//        /// <returns></returns>
//        public ConditionItem FullTextNotLike(object value)
//        {
//            return new ConditionItem(this.PropertyName, this.GroupFunction, ConditionOperator.NotFullTextLike, value);
//        }

//        ///// <summary>
//        ///// 
//        ///// </summary>
//        ///// <param name="propertyName"></param>
//        ///// <returns></returns>
//        //public   OrderExpression TAsc(this IPropertyExpression propertyExpression)
//        //{
//        //    return new OrderExpression(propertyName, OrderType.Asc);
//        //}


//        ///// <summary>
//        ///// 
//        ///// </summary>
//        ///// <param name="propertyName"></param>
//        ///// <returns></returns>
//        //public   OrderExpression TDesc(this IPropertyExpression propertyExpression)
//        //{
//        //    return new OrderExpression(propertyName, OrderType.Desc);
//        //}
//    }
//}
